﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Common;

namespace DAL
{
    public class Repository
    {
        public void LogException(Exception ex)
        {
            DALDataContext dal = new DALDataContext(Configuration.ConnectionString);
            dal.Exceptions.InsertOnSubmit(ex);
            dal.SubmitChanges();
        }

        public void SavePokerTableDecision(PokerTable pokerTable)
        {
            DALDataContext dal = new DALDataContext(Configuration.ConnectionString);
            dal.PokerTables.InsertOnSubmit(pokerTable);
            dal.SubmitChanges();
        }
    }
}
